<?php
class ReportTable extends Doctrine_Table
{
  public static function getInstance()
  {
    return Doctrine_Core::getTable('Report');
  }
  public function getReportBySpecial($special,$max)
  {
	$q = Doctrine_Query::create()
	  ->from('Report k')
	  ->where('k.special_id =?',$special)
	  ->limit($max);
	return $q->execute();
  }
}